<h:form id="formConfirmacao" 
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui">

    <script language="JavaScript" src = "scripts/script.js"/>

    <h:panelGrid columns="2">

        <h:panelGroup>

            <h:outputText value="Código" /><br/>
            <p:inputText value="#{confirmacaoBean.confirmacao.codigo}" 
                         styleClass="up"
                         style="width: 45px"
                         required="true"
                         requiredMessage="Campo código requerido"/><br/>

        </h:panelGroup>

        <h:panelGroup>

            <h:outputText value="Descrição" /><br/>
            <p:inputText value="#{confirmacaoBean.confirmacao.descricao}" 
                         style="width: 160px"
                         required="true"
                         requiredMessage="Campo descrição requerido"
                         styleClass="up" /><br/>

        </h:panelGroup>

    </h:panelGrid>

    <hr/>

    <p:commandButton id="btnGravar" value="Gravar" 
                     actionListener="#{confirmacaoBean.adicionarEditarFim}"
                     update="formConfirmacao" />

    <p:commandButton value="Cancelar" 
                     actionListener="#{confirmacaoBean.cancelar}"
                     immediate="true"/>

</h:form>


